﻿using HuiZe.education.ViewModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace HuiZe.education.View.Toolbar
{
    /// <summary>
    /// BrushToolbar.xaml 的交互逻辑
    /// </summary>
    public partial class BrushToolbar : UserControl
    {
     
        public string kechengbaoId { get; set;}//课程包
        public BrushToolbar()
        {
            InitializeComponent();
        }

        //private void BackHomeGrid_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        //{
        //    //MainView main = new MainView();
        //    //main.ShowDialog();
           
          
        //}

        private void RandomAnswerGrid_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            RandomAnswerShowView randowAnswer = new RandomAnswerShowView();
            randowAnswer.ShowDialog();  
        }

        private void TimeGrid_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            CountDown countDown = new CountDown();
            countDown.ShowDialog(); 
;        }
        /// <summary>
        /// 出勤
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void CheckWorkGrid_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
       
            Attendance attendance = new Attendance(kechengbaoId);
        
            attendance.ShowDialog();    
        }

        private void BruseGrid_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            //if (BeginClass27.inkcanvasToolbar == null)
            //{
            //    BeginClass27.inkcanvasToolbar = new InkCanvasTool();
            //    BeginClass27.InkCanvasToolbarGrid.Children.Add(inkcanvasToolbar);
            //}
            //else
            //{
            //    return;
            //}




        }




    }
}
